
var mySwiper = new Swiper ('.top-box', {
    loop: true,
    pagination: '.top-pag',
	grabCursor: true,
    paginationClickable: true,
    calculateHeight : true,
	autoplay :3000,
	autoplayDisableOnInteraction : false
  }) 

$('.top-box').mouseenter(function () {
   mySwiper.stopAutoplay();
})
$('.top-box').mouseleave(function () {
   mySwiper.startAutoplay();
})






//切换
$(function(){
	 $.fn.hc_proTabChange = function(ev){
	    var ev = ev || 'hover';
	    var _this = $(this);
	    _this.find('.tab_h span').each(function(i){
		    $(this)[ev](function(){
			   $(this).addClass('cur').siblings('span').removeClass('cur');
			   _this.find('.tab_c').eq(i).show().siblings('.tab_c').hide();
		    })
			
	    })
		
     }
})
$(function(){
	$(".tabTxt").hc_proTabChange();
})

var mySwiper2 = new Swiper('.lunbo-box',{
  pagination: '.lunbo-pag',
  loop:true,
  autoplay :3000,
  grabCursor: true,
  paginationClickable: true,
  calculateHeight : true,
  autoplayDisableOnInteraction : false
})
$('.lunbo-box').mouseenter(function () {
   mySwiper2.stopAutoplay();
})
$('.lunbo-box').mouseleave(function () {
   mySwiper2.startAutoplay();
})


var mySwiper3 = new Swiper('.lunbo-box2',{
  pagination: '.lunbo-pag2',
  loop:true,
  autoplay :3000,
  grabCursor: true,
  paginationClickable: true,
  calculateHeight : true,
  autoplayDisableOnInteraction : false
})
$('.lunbo-box2').mouseenter(function () {
   mySwiper3.stopAutoplay();
})
$('.lunbo-box2').mouseleave(function () {
   mySwiper3.startAutoplay();
})







